<form method="post" action="<?php _actionUrl($this);?>" onsubmit="return ajax_form(this)">
<input type="hidden" value="<?php _e(get('contract_id'));?>" name="contract_id"/>
<div class="x-form-container">
	<table width="100%" cellpadding="4" class="x-form">
		<tr>
			<td class="x-form-label" style="width:133px">Lần thanh toán: </td>
			<td>
				<input class="x-text x-small-text" type="text" name="code"/>
			</td>
		</tr>

		<tr>
			<td class="x-form-label">Ngày dự kiến:</td>
			<td>
				<?php _e(tpl_input_date('date_fixed'));?>
			</td>
		</tr>
		
		<tr>
			<td class="x-form-label">Ngày thực tế:</td>
			<td>
				<?php _e(tpl_input_date('date_paid'));?>
			</td>
		</tr>

		<tr>
			<td class="x-form-label">Phần trăm thanh toán:</td>
			<td>
				<?php _e(tpl_input_persent('percent'));?>
			</td>
		</tr>

		<tr>
			<td class="x-form-label">Thành tiền:</td>
			<td>
				<?php _e(tpl_input_price('value'));?>
				<select name="currency_id" class="x-select">
				<?php foreach( $this->get('currencies') as $a ):?>
				<option value="<?php _e($a['ID']);?>"<?php if( $a['ID'] == $post['currency_id'] ) _e(' selected')?>><?php _e($a['title']);?></option>
				<?php endforeach;?>
				</select>				
			</td>
		</tr>
		
		<tr>
			<td class="x-form-label">Mô tả: </td>
			<td class="x-form-input">
				<textarea class="x-text x-big-text" name="desc"></textarea>
			</td>
		</tr>
			
		<tr>
			<td></td>
			<td>
				<?php _e(tpl_button_add('Cập nhật'));?>
				<?php _e(tpl_button_close());?>				
			</td>
		</tr>
	</table>
</div>
</form>
